//
//  DDHomeRecommendBannerView.h
//  DYD
//
//  Created by 邱明 on 2018/2/22.
//  Copyright © 2018年 Diyidan. All rights reserved.
//

#import <UIKit/UIKit.h>

@class DDHomeRecommendBannerView;

@protocol DDHomeRecommendBannerViewDelegate <NSObject>

@optional
//indexPath:section,0是大banner,1是小banner；row是下标
- (void)homeRecommendBannerView:(DDHomeRecommendBannerView *)bannerView didSelectPromotion:(NSString *)promotion atIndexPath:(NSIndexPath *)indexPath;

@end

@interface DDHomeRecommendBannerView : UIView

+ (instancetype)homeRecommendBannerView; //创建首页banner视图
/** 点击的回调 */
@property (nonatomic, weak) id<DDHomeRecommendBannerViewDelegate> delegate;

- (void)layoutWithBigBanners:(NSArray *)bigBanners smallBanners:(NSArray *)smallBanners;

@end
